#将csv转化为txt
import pandas as pd
data=pd.read_csv('/home/qnstar/Documents/datasets/us-counties.csv')
with open('/home/qnstar/Documents/datasets/us-counties.txt','a+',encoding='utf-8') as f:
    for line in data.values:
        f.write((str(line[0])+'\t'+str(line[1])+'\t'+str(line[2])+'\t'+str(line[3])+'\t'+str(line[4])+'\t'+'\n'))